home *** CD-ROM | disk | FTP | other *** search
- ColdBoot
- --------
-
- This program was born out of laziness: I use the ASDG recoverable RAM
- disk, but, since I don't have a lot of memory available, I sometimes need
- to boot with a "maximum memory" boot disk, that doesn' t load ANYTHING
- special into memory. However, the only way to recover the space from the
- RAM disk has been to power off the machine. Since my power box is on the
- floor under a table, this is a real pain.
-
- This program eliminates the need to power off the machine to recover all
- available RAM. Recoverable RAM depends on the ExecBase structure being
- intact after a warm boot. This structure gives the location of everything
- else in the system, including the memory areas to recover when booting back
- up. This program destroys the ExecBase structure, leading the Amiga to
- believe that it has just been powered up.
-
-
- ColdBoot is a small assembler program; the source is included in this
- archive (and MUST be included if you are going to redistribute this program
- on other boards). It opens the Intuition library and brings up a requester
- asking if you are sure you want to cold boot your machine; if you click on
- NO, you will be able to continue working as though you never ran the
- program. If you click on YES, however, all hell breaks loose:
-
- In this case, the program will disable all interrupts, and it never
- re-enables them. (The hell with multi-tasking, we're rebooting anyway!)
- It then proceeds to trash a few location in ExecBase, so the machine will
- think it is cold booting instead of warm booting. I believe that trashing
- the checksum is enough; just to be on the safe side, I also trash the
- KickMem and KickTag pointers and their checksum. These are the pointers
- that indicate the memory areas to recover and the modules to relink into
- the system lists when booting up.
-
- After doing that, the program will reset the machine. The code for doing
- this is taken from the Amiga Hardware Reference manual; look at the source
- code to see how it is done.
-
- ---------------------------------------------------------------------------
-
- This program is copyright (c) 1991 by Peter D. Dunlap, except for the reset
- code itself, which was provided by Commodore. It may be redistributed as
- you see fit, as long as you are not making a profit from it, and as long as
- the original archive remains intact. If you make changes to the code,
- please indicate the changes you have made in the documentation and in the
- comments to the code itself.
-
- This code may NOT be distributed via any intermediary which assumes
- copyright to the code. If found on any such installation, it can only be
- because said organization has waived their copyright seizure for this
- particular program.
-
-
- -- Pete Dunlap
-